package design.createModel.factory.factoryMethod.demo1;

public class CoffeeStore {
    private AbstractCoffeeFactory coffeeFactory;

    public void setCoffeeFactory(AbstractCoffeeFactory factory){
        this.coffeeFactory = factory;
    }

    public Coffee orderCoffee(){
        Coffee coffee = coffeeFactory.createCoffee();
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }
}
